package cn.tedu.blackhorse.mapper;

import cn.tedu.blackhorse.pojo.entity.User;
import cn.tedu.blackhorse.pojo.vo.UserListItemVO;
import cn.tedu.blackhorse.pojo.vo.UserStandardVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    int insert(User user);

    int deleteById(Long id);

    int deleteByIds(List<Long> ids);

    int updateById(User user);

    int count();

    List<UserListItemVO> list();

    UserStandardVO getById(Long id);

    UserStandardVO getByUsername(String username);

}
